<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript">

function generatingVO(form){
	submitPost(form, voGenCallback);
}
	
function voGenCallback(data){
	//document.getElementById("voGenResultArea").value=data.output;
	$('#voGenResultArea').html(
			data.output 
			);
}
SyntaxHighlighter.all();
</script>

<style type="text/css">
.my-box { border:1px  dashed; padding:10px; }
</style>
<h1>${title}</h1>
<form name="voGenForm" action="./voGen" method="post">
<br>
<div id="option" class="my-box">
<b>USAGE</b><br>
<br>
SQL Developer 기준으로 복사해서 쓰도록 되어있음.<br>
아래 이미지 참고하여 컬럼들을 순서대로 복사해서 넣고 변환버튼을 누르면 됩니다.

<br><br>
<b>CONVERTING OPTIONS</b><br>
<br>
NUMBER 변환 : int <input name="numberType" type="radio" value="int" checked="checked" /> : long<input name="numberType" type="radio" value="long"/>
: float<input name="numberType" type="radio" value="float"/>: double<input name="numberType" type="radio" value="double"/>
<br>
DATE 변환 : date <input name="dateType" type="radio" value="date" checked="checked"> : String<input name="dateType" type="radio" value="String"/>
<br>
setter에 trim()추가 여부 <input name="trim" type="checkbox"  checked="checked"/>
<br>
@valid(JSR-303) 코드 생성여부 <input name="validation" type="checkbox"/> // 현재버전은 @NotBlank, @Size 어노테이션만 생성됨
</div>
<br>
<div id="columnsDiv" class="voGen">
	Table Columns<br>
	<textarea id="columnsArea" name="col_input" cols="20" rows="20"></textarea>
</div>
<div id="dataTypeDiv" class="voGen">
Data Type <br>
	<textarea id="dataTypeArea" name="type_input" cols="20" rows="20"></textarea>
</div>
<div id="commentDiv" class="voGen">
Column Comments <br>
	<textarea id="commentArea" name="cmt_input" cols="20" rows="20"></textarea>
</div>
<div id="nullableDiv" class="voGen">
Nullable (Yes/No) <br>
	<textarea id="nullableArea" name="nullable_input" cols="20" rows="20"></textarea>
</div>

<div id="buttons"  class="voGen">
	<input type="button" name="forward" onClick="generatingVO(document.voGenForm)" value="-->" />
</div>
<div id="rightDiv"  class="voGen">
VO Result <br>
<!-- <pre class="brush: Java" id="voGenResultArea" name="reverse_input" cols="40" rows="20">
</pre> -->
	<textarea id="voGenResultArea" name="nullable_input" cols="150" rows="20"></textarea>
</div>
<br>
<p>
<div>
</div>
</p>
</form>